<% gcp_project_id = "#{external_attribute(pwd, 'gcp_project_id', doc_generation)}" -%>
<% gcp_location = "#{external_attribute(pwd, 'gcp_location', doc_generation)}" -%>
<% subnetwork = grab_attributes(pwd)['subnetwork'] -%>
describe google_compute_subnetworks(project: <%= gcp_project_id -%>, region: <%= gcp_location -%>) do
  its('ip_cidr_ranges') { should include <%= doc_generation ? "'#{subnetwork['ip_cidr_range']}'" : "subnetwork['ip_cidr_range']" -%> }
  its('subnetwork_names') { should include <%= doc_generation ? "'#{subnetwork['name']}'" : "subnetwork['name']" -%> }
end